import Vue from 'vue'
import App from './App.vue'
import './plugins/element.js'
import router from './routes'
import './styles/index.scss'
import './mocks/index.js'
import store from './store'
import './assets/iconfont/iconfont'
import './assets/iconfont/iconfont.css'
import VueAMap from 'vue-amap'

Vue.use(VueAMap)
window.VueAMap = VueAMap
Vue.config.productionTip = false

VueAMap.initAMapApiLoader({
  key: '',
  plugin: [
    'AMap.Autocomplete',
    'AMap.PlaceSearch',
    'AMap.Scale',
    'AMap.OverView',
    'AMap.ToolBar',
    'AMap.MouseTool',
    'AMap.MapType',
    'AMap.PolyEditor',
    'AMap.CircleEditor',
    'AMap.Geocoder',
    'AMap.Geolocation'
  ],
  // 默认高德 sdk 版本为 1.4.4
  v: '1.4.15'
})
new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
